package cn.stylefeng.guns.modular.cb.mapper;

import cn.stylefeng.guns.modular.cb.entity.CbObjective;
import cn.stylefeng.guns.modular.cb.model.params.CbObjectiveParam;
import cn.stylefeng.guns.modular.cb.model.result.CbObjectiveResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wj
 * @since 2021-01-06
 */
public interface CbObjectiveMapper extends BaseMapper<CbObjective> {

    /**
     * 获取列表
     *
     * @author wj
     * @Date 2021-01-06
     */
    List<CbObjectiveResult> customList(@Param("paramCondition") CbObjectiveParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wj
     * @Date 2021-01-06
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") CbObjectiveParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wj
     * @Date 2021-01-06
     */
    Page<CbObjectiveResult> customPageList(@Param("page") Page page, @Param("paramCondition") CbObjectiveParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author wj
     * @Date 2021-01-06
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") CbObjectiveParam paramCondition);

    /**
     * 获取最新的两个期望职位
     * @param createUser
     * @return
     */
    List<CbObjectiveResult> objectiveByLimit2(@Param("createUser") Long createUser);

    /**
     * 获取期望职位
     * @param paramCondition
     * @return
     */
    CbObjectiveResult getObjective(@Param("paramCondition") CbObjectiveParam paramCondition);
}
